/**
 * 
 */
package fr.mynounou.web.beans;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

import org.primefaces.model.DashboardColumn;
import org.primefaces.model.DashboardModel;
import org.primefaces.model.DefaultDashboardColumn;
import org.primefaces.model.DefaultDashboardModel;

import fr.mynounou.web.model.UsersManager;

/**
 * @author btavernier
 * 
 */
@SuppressWarnings("serial")
@ManagedBean(name = "EnfantController")
@SessionScoped
public class EnfantController implements Serializable {
	@ManagedProperty(value = "#{UsersManager}")
	private UsersManager usersManager;

	private DashboardModel model;

	public EnfantController() {
		model = new DefaultDashboardModel();
		DashboardColumn column1 = new DefaultDashboardColumn();

		column1.addWidget("enfants");

		model.addColumn(column1);
	}

	/**
	 * @return the usersManager
	 */
	public UsersManager getUsersManager() {
		return usersManager;
	}

	/**
	 * @param usersManager the usersManager to set
	 */
	public void setUsersManager(UsersManager usersManager) {
		this.usersManager = usersManager;
	}

	/**
	 * @return the model
	 */
	public DashboardModel getModel() {
		return model;
	}

	/**
	 * @param model the model to set
	 */
	public void setModel(DashboardModel model) {
		this.model = model;
	}

}
